﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CQIE.JonJack.SplLibraryService._IBooksService
{
    public interface IBooksService
    {
        /// <summary>
        /// 图书注销
        /// </summary>
        /// <param name="bid"></param>
        /// <returns></returns>
        public bool destructBook(int bid);
        /// <summary>
        /// 新增图书
        /// </summary>
        /// <param name="newBook"></param>
        /// <returns></returns>
        public bool setNewBook(string newBook);
        /// <summary>
        /// 借书
        /// </summary>
        /// <param name="bookId"></param>
        /// <param name="beginTime"></param>
        /// <param name="endTime"></param>
        /// <returns></returns>
        public bool BorrowBook(string bookId,string endTime, string schoolNumber);
        /// <summary>
        /// 获取所有的用户借的书
        /// </summary>
        /// <param name="schoolNumber"></param>
        /// <returns></returns>
        public string getAllBorrowedBook(string schoolNumber);
        /// <summary>
        /// 获取所有的用户借的书
        /// </summary>
        /// <param name="schoolNumber"></param>
        /// <returns></returns>
        public string getHistoryBook(string schoolNumber);
        /// <summary>
        /// 归还图书
        /// </summary>
        /// <param name="bookId"></param>
        /// <param name="stuNum"></param>
        /// <returns></returns>
        public bool ReturnBook(string bookId, string stuNum);
        /// <summary>
        /// 统计图书
        /// </summary>
        /// <returns></returns>
        public string StatisticsBook();
    }
}
